package com.joshjung.echosurf.event
{
    import flash.events.Event;

    /**
     * 
     * @author jjung
     */
    public class ESJoinEvent extends Event
    {
        //---------------------------------------------------------------------
        //
        //  Static Variables
        //
        //---------------------------------------------------------------------
        public static const PEER_JOIN : String = "peerJoin";

        //---------------------------------------------------------------------
        //
        //  Variables
        //
        //---------------------------------------------------------------------
        public var clientID : int;

        //---------------------------------------------------------------------
        //
        //  Constructor
        //
        //---------------------------------------------------------------------
        /**
         *  Constructor
         */
        public function ESJoinEvent(clientID : int, bubbles : Boolean = false, cancelable : Boolean = false)
        {
            super(PEER_JOIN, bubbles, cancelable);

            this.clientID = clientID;
        }
    }
}
